import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "discount",
    name: "discount",
    meta: [{ name: "优惠券管理" }],
    component: () => import("../views/promotion/Discount.vue")
  },
  {
    path: "advertising",
    name: "advertising",
    meta: [{ name: "商铺广告" }],
    component: () => import("../views/promotion/Advertising.vue")
  },
  {
    path: "recommend",
    name: "recommend",
    meta: [{ name: "推荐管理" }],
    component: () => import("../views/promotion/Recommend.vue")
  },
  {
    path: "shop",
    name: "shop",
    meta: [{ name: "商铺管理" }],
    component: () => import("../views/promotion/Shop.vue")
  }
];

export default routes;
